<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>电商平台</title>
<style type="text/css">


</style>
<link type="text/css" rel="stylesheet" href="../css/menuTop.css" />
<link type="text/css" rel="stylesheet"
	href="../css/font-awesome.min.css" />
<link type="text/css" rel="stylesheet" href="../css/menuContain.css" />
<link href="../meun/bootstrap.min.css" rel="stylesheet">

</head>
<body>
	<div class="page-wrapper">
		<header class="header fixed clearfix">
			<div class="container">
				<div class="row">
					<div class="col-md-3">
						<div class="header-left clearfix">
							<div class="logo">
								<a href="index.htm"><img src="../img/logo-1.png" /> </a>
							</div>
						</div>
					</div>
					<div class="col-md-9">
						<div class="header-right clearfix">
							<div class="main-navigation animated">
								<nav class="navbar navbar-default" role="navigation">
									<div class="collapse navbar-collapse" id="navbar-collapse-1">
										<ul class="main-menu menu">
											<li class="menu-218 first active"><a href="index.htm"
												class="active">主页</a></li>
											<li class="menu-384"><a href="./user_gwc">我的购物车</a>
											</li>
											<li class="menu-379"><a href="./user_viewDetail">我的的订单</a></li>
											<li class="menu-354"><a href="./index.html">用户</a></li>
											<li class="menu-346 last"><a href="../shopper/login.jsp">商家</a></li>
										</ul>
									</div>
								</nav>
							</div>
						</div>
					</div>
				</div>
			</div>
		</header>
		<!-- header end -->
		<!-- banner start -->
		<div class="banner">
			<div class="section dark-translucent-bg "
				style="background-image:url(../img/parallax-bg.jpg)">
				<div class="space"></div>
				<div class="space"></div>
				<div class="space"></div>
				<div class="space"></div>
				<div class="space"></div>
				<div class="space"></div>
				<div class="space"></div>
				<div class="space"></div>
				<div class="space"></div>
				<div class="space"></div>
			</div>
		</div>
	</div>
	<!-- banner end -->
	<!-- page-top start -->
	<div class="page-top">
		<div class="container">
			<div class="content">
				<h2 class="title text-center">商品</h2>
				<br> <br>
			</div>
		</div>
		<div class="container">
			<div class="row" style="height: 100px;">
				<c:forEach items="${requestScope.pageBean.pageData}" var="good">
					<div class="col-sm-5 col-md-3" >
						<div class="thumbnail">
							<img src="${good.shopPic }" alt="..." height="100px">
							<div class="caption">
								<h3>${good.goodsName}</h3>
								<p style="color:#FF0000;">${good.goodsPrice}</p>
								<p>
									<a href=
										"${pageContext.request.contextPath}/user/user_addToCar?goods.goodsId=${good.goodsId}&goods.shoperId=${good.shoperId}
										" class="btn btn-primary" role="button">加入购物车</a>
							</div>
						</div>
					</div>
				</c:forEach>
			</div>

		</div>
	</div>
	<div align="center">
		<nav>
			<ul class="pagination">
				<li><a href="${pageContext.request.contextPath }/user/user_viewAllGoods?currentPage=1">1</a></li>
				<li><a  href="${pageContext.request.contextPath }/user/user_viewAllGoods?currentPage=${requestScope.pageBean.currentPage-1}"><span aria-hidden="true">&laquo;</span> </a></li>
				<li><a href="#">${requestScope.pageBean.currentPage }</a></li>
				<li><a href="${pageContext.request.contextPath }/user/user_viewAllGoods?currentPage=${requestScope.pageBean.currentPage+1}"> <span aria-hidden="true">&raquo;</span> </a></li>
				<li style=" background-color:#000099;"><a href="${pageContext.request.contextPath }/user/user_viewAllGoods?currentPage=${requestScope.pageBean.totalPage}">${requestScope.pageBean.totalPage }</a></li>
			</ul>
		</nav>
	</div>
	<footer id="footer" class="light">
		<div class="footer">
			<div class="content">
				<p class="text-center" style="font-size:18px; color:#FF0000;">Copyright
					2016 ©director By Abang and JackGao</p>
			</div>
		</div>
	</footer>
	</div>
</body>
</html>
